package com.you.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.you.entity.Goods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 友友
 * @since 2022-10-24
 */

@Mapper
@Repository
public interface GoodsMapper extends BaseMapper<Goods> {

    IPage pageDiy(Page<Goods> page, @Param(Constants.WRAPPER) LambdaQueryWrapper<Goods> wrapper);
}
